import 'package:kkhousekeep/generated/json/base/json_convert_content.dart';
import 'package:kkhousekeep/models/home_village_change_entity.dart';

HomeVillageChangeEntity $HomeVillageChangeEntityFromJson(Map<String, dynamic> json) {
	final HomeVillageChangeEntity homeVillageChangeEntity = HomeVillageChangeEntity();
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		homeVillageChangeEntity.code = code;
	}
	final HomeVillageChangeObj? obj = jsonConvert.convert<HomeVillageChangeObj>(json['obj']);
	if (obj != null) {
		homeVillageChangeEntity.obj = obj;
	}
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		homeVillageChangeEntity.msg = msg;
	}
	return homeVillageChangeEntity;
}

Map<String, dynamic> $HomeVillageChangeEntityToJson(HomeVillageChangeEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['code'] = entity.code;
	data['obj'] = entity.obj.toJson();
	data['msg'] = entity.msg;
	return data;
}

HomeVillageChangeObj $HomeVillageChangeObjFromJson(Map<String, dynamic> json) {
	final HomeVillageChangeObj homeVillageChangeObj = HomeVillageChangeObj();
	final String? token = jsonConvert.convert<String>(json['token']);
	if (token != null) {
		homeVillageChangeObj.token = token;
	}
	return homeVillageChangeObj;
}

Map<String, dynamic> $HomeVillageChangeObjToJson(HomeVillageChangeObj entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['token'] = entity.token;
	return data;
}